﻿Public Class PDFReaderForm
    Public Property FilePath As String = String.Empty

    Private Sub PDFReader_FormClosing(sender As Object, e As FormClosingEventArgs) Handles Me.FormClosing
        If IO.File.Exists(FilePath) Then
            IO.File.Delete(FilePath)
        End If
    End Sub
    Private Sub PDFReader_Load(sender As Object, e As EventArgs) Handles MyBase.Load
        Me.PdfViewer1.LoadDocument(FilePath)
    End Sub
End Class